<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<spring:eval expression="@propertyConfigurer.getProperty('url.cdn')" var="cdnUrl" />
<spring:eval expression="@propertyConfigurer.getProperty('build.version')" var="version" />
<div id="locator">
    <ul class="inline">
        <c:choose>
            <c:when test="${locatorID}">
                <li>
                    <a href='<c:url value="/p?start=${locatorID}" />'><spring:message code="voj.problems.navigate.all-problem" text="Locator" /></a>
                </li>
            </c:when>
            <c:when test="${isContest}">
                <li>
                    <a href='<c:url value="/contest/${contest.contestId}" />'>${contest.contestName}</a>
                </li>
            </c:when>
            <c:otherwise>
                <li>
                    <a href='<c:url value="/p" />'><spring:message code="voj.problems.navigate.all-problem" text="Locator" /></a>
                </li>
            </c:otherwise>
        </c:choose>
        <c:if test="${problem != null}">
            <li>/</li>
            <li><a href='<c:url value="/p/${problem.problemId}" />'>P${problem.problemId}</a></li>
            <li>[<li>
            <li class="live" onclick="turnToACE(0)"><spring:message code="voj.problems.navigate.normal" text="Normal" /></li>
            <li>|<li>
            <li class="default" onclick="turnToACE(1)"><spring:message code="voj.problems.navigate.ace" text="Ace" /></li>
            <li>]<li>
        </c:if>
    </ul>
</div> <!-- #locator -->
